@(tower: de.puc.defencetower.model.Tower)

<div class="tower">

    @if(tower.getType() == de.puc.defencetower.model.Tower.TOWERTYPE_SMALL){
        @if(tower.getLevel == 0){
            <img class=".img-responsive" src="@routes.Assets.at("images/game/tower/turm1a.png")" >
        }
        @if(tower.getLevel == 1){
            <img class=".img-responsive" src="@routes.Assets.at("images/game/tower/turm1b.png")" >
        }
        @if(tower.getLevel == 2){
            <img class=".img-responsive" src="@routes.Assets.at("images/game/tower/turm1c.png")" >
        }
        @if(tower.getLevel == 3){
            <img class=".img-responsive" src="@routes.Assets.at("images/game/tower/turm1d.png")" >
        }
    }
    @if(tower.getType() == de.puc.defencetower.model.Tower.TOWERTYPE_MIDDLE){
        @if(tower.getLevel == 0){
            <img class=".img-responsive" src="@routes.Assets.at("images/game/tower/turm2a.png")" >
        }
        @if(tower.getLevel == 1){
            <img class=".img-responsive" src="@routes.Assets.at("images/game/tower/turm2b.png")" >
        }
        @if(tower.getLevel >= 2){
            <img class=".img-responsive" src="@routes.Assets.at("images/game/tower/turm2c.png")" >
        }
        @if(tower.getLevel >= 3){
            <img class=".img-responsive" src="@routes.Assets.at("images/game/tower/turm2d.png")" >
        }

    }
    @if(tower.getType() == de.puc.defencetower.model.Tower.TOWERTYPE_BIG){
        @if(tower.getLevel == 0){
            <img class=".img-responsive" src="@routes.Assets.at("images/game/tower/turm3a.png")" >
        }
        @if(tower.getLevel == 1){
            <img class=".img-responsive" src="@routes.Assets.at("images/game/tower/turm3b.png")" >
        }
        @if(tower.getLevel >= 2){
            <img class=".img-responsive" src="@routes.Assets.at("images/game/tower/turm3c.png")" >
        }
        @if(tower.getLevel >= 3){
            <img class=".img-responsive" src="@routes.Assets.at("images/game/tower/turm3d.png")" >
        }
    }


    @if(tower.isShooting) {
        <img class=".img-responsive piu" src="@routes.Assets.at("images/game/tower/piu.png")" >
        <script>
        $(".piu" ).effect( "bounce" );
        </script>
    } else {
        <!-- <img class=".img-responsive" src="@routes.Assets.at("images/game/tower/turm1a.png")" >-->

    }

</div>


